package com.hzncc.flowable_diboot.entity.bpm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
* 流程分类 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-06-20
* Copyright © MyCorp
*/

@TableName("mdl_bpm_category")
@Getter @Setter @Accessors(chain = true)
public class BpmCategory extends BaseModel {
    private static final long serialVersionUID = 1619925685591929604L;
     /**
     * 分类名称
     */
     @NotNull(message = "分类名称不能为空")
     @Length(max=100, message="分类名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String name;

     /**
     * 分类编码
     */
     @NotNull(message = "分类编码不能为空")
     @Length(max=100, message="分类编码长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String code;

     /**
     * 分类描述
     */
     @Length(max=255, message="分类描述长度应小于255")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String description;

     /**
     * 分类状态
     */
     @TableField()
     private String status;

     /**
     * 分类排序
     */
     @TableField()
     private Long sort;


}